package top.infopub.mgr.sys.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.sys.dao.BusinessParameterDao;
import top.infopub.mgr.sys.service.BusinessParameterService;
import top.infopub.model.sys.BusinessParameter;


@Service
public class BusinessParameterServiceImpl extends GenericServiceImpl<BusinessParameter, String> implements BusinessParameterService {

    @Autowired
    private BusinessParameterDao businessParameterDao;

    @Override
    public GenericDao<BusinessParameter, String> getDao() {
        return businessParameterDao;
    }

	@Override
	public Page<BusinessParameter> selectBusinessParaByCondition(BusinessParameter busParm, Page<BusinessParameter> page) {
		PageHelper.startPage(page.getPageNum(), page.getPageSize());
		return businessParameterDao.selectBusinessParaByCondition(busParm);
	}

}